package com.harmontronics.hanma.paas.paas.dto.input.model;

import com.harmontronics.hanma.paas.paas.domain.app.entity.valueobject.ModelTypeEnum;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * ${comments}
 *
 * @author paas-generator
 * @email paas-generator@harmontronics.com
 * @date 2021-03-31 16:40:00
 */
@Data
public class HmModelUpdateInput {


    @ApiModelProperty(value = "唯一键")
    @NotNull(message = "hm.pass.field_non_nullable")
    private Long id;
    /**
     * 模型名
     */
    @ApiModelProperty(value = "模型名")
    @NotNull(message = "hm.pass.field_non_nullable")
    @NotEmpty(message = "hm.pass.field_non_nullable")
    @NotBlank(message = "hm.pass.field_non_nullable")
    private String name;



    /**
     * 模型描述
     */
    @ApiModelProperty(value = "模型描述")
    private String description;


    /**
     * 视图名
     */
    @ApiModelProperty(value = "视图名")
    private String viewName;


    /**
     * 数据源ID
     */
    @ApiModelProperty(value = "数据源ID")
    private Long datasourceId;


    @ApiModelProperty(value = "http服务ID")
    private Long httpServiceId;

}
